import service from "utils/request"

// 获取权限列表
export const getRoleList = (params) => {
  return service({
    url: "/role/getRoleList",
    method: "get",
    params
  })
}

// 新增权限
export const createRole = (data) => {
  return service({
    url: "/role/createRole",
    method: "post",
    data
  })
}

// 更新权限
export const updateRole = (data) => {
  return service({
    url: "/role/updateRole",
    method: "put",
    data
  })
}

// 删除权限
export const deleteRole = (data) => {
  return service({
    url: "/role/deleteRole",
    method: "delete",
    data
  })
}
